package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 冲洗液用量设计 对应表 CM_PREFLUSH_DOSAGE_DESIGN
public class CM_PreflushDosageDesign extends BABaseEntity {
    @Id
    @GenericGenerator(name="preflushDosageGenerator", strategy="uuid")
    @GeneratedValue(generator="preflushDosageGenerator")
    private String CM_PreflushDosageDesign_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "DENSITY")
    private Double density;

    @Basic
    @Column(name = "FORMULA", length = 150)
    private String formula;

    @Basic
    @Column(name = "DOSAGE")
    private Double dosage;

    @Basic
    @Column(name = "PREPARATION")
    private Double preparation;

    @Basic
    @Column(name = "CIRCULATION")
    private Double circulation;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
